/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;

/**
 *
 * @author Mattis
 */
public class MenyPanel extends JPanel {

    private JButton startBtn;

    public MenyPanel() {
        setConfig();
        addComponents();
    }

    private void setConfig() {
        this.setLayout(new GridLayout(1, 0));
        this.setSize(400, 400);
        this.setVisible(true);
        this.setOpaque(false);
        // this.setBackground(Color.red);
    }

    private void addComponents() {
        startBtn = new JButton("Start");
        startBtn.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
                System.out.println("pressed start");
            }
        });
        this.add(startBtn);
        this.add(new JLabel(""));
    }
}
